package model;

import javax.swing.ImageIcon;

public class Product {

	
	private double buyingPrice;
	
	private String name;
	
	private ImageIcon icon;
	

	public double getBuyingPrice() {
		return buyingPrice;
	}

	public void setBuyingPrice(double buyingPrice) {
		this.buyingPrice = buyingPrice;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public ImageIcon getIcon() {
		return icon;
	}

	public void setIcon(ImageIcon icon) {
		this.icon = icon;
	}
	public ImageIcon getImage(String name) {
		ImageIcon icon = new ImageIcon(this.getClass().getResource(
				"/images/icons/food/"+name));
		return icon;

	}
}
